################################################
# Analysis for:
#
# Jordan, Soren, Hannah L. Paul, and Andrew Q. Philips. 
#   ``How to Cautiously Uncover the `Black Box’ of Machine Learning Models for Legislative Scholars''
#   Legislative Studies Quarterly
#
# Required files: 
#     JPP-LSQ-2022-HO.R (for the Howard and Owens replication)
#     JPP-LSQ-2022-PR.R (for the Poyet and Raunio replication)
#
################################################
#
# JPP-LSQ-2022-HO.R replicates the analysis for the Howard and Owens example
#
# Table 1.
# Figures 2, 3, 4, 5, 6, and 7
#
# It is replication of 
#
# Howard, Nicholas O. and Mark E. Owens. 2020. ``Circumventing Legislative Committees: The US Senate.''
#  Legislative Studies Quarterly 45(3): 495-526. DOI: https://doi.org/10.1111/lsq.12269
#
# The required dataset is bypass_data_LSQ.dta. It is available for download from the 
#  LSQ dataverse at https://doi.org/10.7910/DVN/G46IQM
#
#
#
#
#
# JPP-LSQ-2022-PR.R replicates the analysis for the Poyet and Raunio example
#
# Table 2.
# Figures 8, 9, 10, 11, 12, and 13
#
# It is replication of 
#
# Poyet, Corentin and Tapio Raunio. 2021. ``Reconsidering the Electoral Connection of Speeches: 
#  The Impact of Electoral Vulnerability on Legislative Speechmaking in a Preferential Voting System.''
#  Legislative Studies Quarterly 46(4): 1087-1112. DOI: https://doi.org/10.1111/lsq.12314
#
# The required dataset is Eduskunta Speeches 1995-2019.dta. It is available for download from the 
#  LSQ dataverse at https://doi.org/10.7910/DVN/GMFZ4X